import java.util.Scanner;

public class HomeWork16 {

    //if (name =="admin"){}错误写法
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        System.out.println("欢迎用户使用本系统，请先进行用户登录。");
        System.out.println("请输入用户名；");
        String username = s.next();
        System.out.println("请输入密码；");
        String password = s.next();
        if (username.equals("admin") && password.equals("abc123")) {
            System.out.print("请输入用户名；");
            if (username.equals("admin") && password.equals("abc123")) {
                System.out.println("登录成功");
            } else {
                System.out.println("用户名不存在或者密码错误，登录失败！");
            }
        }
    }
}

